from openpyxl import Workbook

wb = Workbook()
ws = wb.active

# 设置颜色
ws.sheet_properties.tabColor = "FF9900"

# 保存文件
wb.save("color.xlsx")

